﻿namespace SCABaselineCS.Tests.LanguageFeatures
{
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using System;

    [TestClass]
    public class NamedParameterTests
    {
        [System.ComponentModel.Description(description: "This is an example of using named parameters in attributes")]
        public void CodeSnippet(string s, int i)
        {
            /* do nothing */
        }

        [TestMethod]
        public void Example()
        {
            // Arrange
            bool exceptionThrown = false;

            // Act
            Action attempt = () => { CodeSnippet(i: 0, s: String.Empty); };
            try { attempt.Invoke(); }
            catch { exceptionThrown = true; }

            // Assert
            Assert.IsFalse(exceptionThrown);
        }


    } // class
} // namespace